use rrai_desktop_sdk_common::devices::{devices_device_get_peer_id, devices_device_login};

pub async fn start(token: &String) -> ::anyhow::Result<()> {
    ::tracing::debug!("启动:{}", token);

    let _ = devices_device_login(token).await?;

    let peer_id = devices_device_get_peer_id().await?;
    ::tracing::debug!("启动成功:{}", peer_id.0);

    Ok(())
}
